/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-28
 * Time: 18:59
 */
public class Main {
    public static int max(int a, int b){
        return a>b?a:b;
    }
    public static double max(double a, double b){
        return a>b?a:b;
    }
    public static double max(int a, double b, double c){
        b=a>b?a:b;
        c=b>c?b:c;
        return c;
    }
    public static void main(String[] args) {
        int a=1;
        int b=3;
        double c=2.5;
        double d=3.5;
        System.out.println(max(a,b));
        System.out.println(max(c,d));
        System.out.println(max(b,c,d));
    }
}
